<?php
	$form = $_POST;
	$id = $form['location'];
	$tour_location = new TourLocation();
	$tour_location->settour_id($tour_id);
	$tour_location->setlocation_id($id);
	$index = TourLocation::getCurrentIndex($tour_id);
	$tour_location->setlocation_index($index + 1);
	$tour_location->insert();
	admin_load("Thêm Địa Điểm Thành Công", "?act=locations_list_for_tour&tour_id=".$tour_id);
?>